/* Copyright (C) 
 * 
 * Disclaim
 * This program is the property of AI Speech Ltd. It shall be communicated to
 * authorized personnel only. It is not to be disclosed outside the group without
 * prior written consent. If you are not sure if you’re authorized to read this
 * program, please contact info@aispeech.com before reading.
 * 
 */

#ifndef ___WXM71___AISPEECH_WTK_UTILS_GET_DISTANCE__HEADER___
#define ___WXM71___AISPEECH_WTK_UTILS_GET_DISTANCE__HEADER___

#include <math.h>


#ifdef __cplusplus 
extern "C" {
#endif 

#define PI  3.1415926
#define EARTH_RADIUS	6378.137        //地球近似半径

// 求弧度
double wtk_utils_radian(double d);

//计算距离
double wtk_utils_get_distance(double lat1, double lng1, double lat2, double lng2);

// 比较两个double值
int wtk_utils_cmp_double(double d1, double d2);

#ifdef __cplusplus  
};
#endif

#endif
